﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="krj_tracking.aspx.cs" Inherits="krj_tracking" %>
<%@ Register Src="~/UserControls/ucDateTimePicker.ascx" TagName="ucDateTimePicker" TagPrefix="Kerry" %>
<%@ Register Src="~/UserControls/ucFavorite.ascx" TagName="ucFavorite" TagPrefix="Kerry" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" Runat="Server">
    <script src="../../Scripts/bas_error.js"></script>
    <script src="../../Scripts/GridDataBind.js"></script>
  
    <script src="../../Scripts/scroll.js"></script>
    <script src="Scripts/krj_tracking.js"></script>
   
  <div>
    <table class="ConditionTable" id="tbCondition">
        <tr>
            
            <th colspan="3">
                <Kerry:ucFavorite ID="ucFavorite" runat="server" />發到整合查詢</th>
      
        </tr>
      
      <%--發送資料查詢--%> 
      <tr id="tr_A_1">
        <td>托運單號 :
                    <%--<input id="txtCARGO_NO_S" runat="server" type="text" />--%> <%--- <input id="txtCARGO_NO_E" runat="server" type="text" />--%>
            <asp:TextBox ID="txtCARGO_NO_S" runat="server"></asp:TextBox>
        </td>
        <td colspan="3">發送日>= :
            <Kerry:ucDateTimePicker runat="server" ID="txtDISPATCH_DATE"  />
        </td>
      </tr>
      <tr id="tr_A_2">
        <td>托運人編號 :
                    <%--<input id="txtSHIPPER" runat="server" type="text" /> --%>
            <asp:TextBox ID="txtSHIPPER" runat="server"></asp:TextBox>
        </td>
        <td>托運人名稱 :
                    <%--<input id="txtSHIPPER_NAME" runat="server" type="text" />--%>
            <asp:TextBox ID="txtSHIPPER_NAME" runat="server"></asp:TextBox>
        </td>
        <td>收貨人名稱 :
                    <%--<input id="txtRECEIVER" runat="server" type="text" />--%>
            <asp:TextBox ID="txtRECEIVER" runat="server"></asp:TextBox>
        </td>
      </tr>
      <tr id="tr_A_3">
        <td>行銷專案 :
                    <%--<input id="txtPROJECT" runat="server" type="text" />--%>
            <asp:TextBox ID="txtPROJECT" runat="server"></asp:TextBox>
        </td>
        <td>當日/隔日配 :
                    <input id="chkToday" type="checkbox" />(Y/N)
        </td>
        <td>付款人編號 :
                    <%--<input id="txtPAYER" runat="server" type="text" />--%>
            <asp:TextBox ID="txtPAYER" runat="server"></asp:TextBox>
        </td>
      </tr>
      <tr id="tr_A_4">
        <td>客戶編號 :
                   <%-- <input id="txtCUSTOMER" runat="server" type="text" /> --%>
            <asp:TextBox ID="txtCUSTOMER" runat="server"></asp:TextBox>
        </td>
        <td>發送所站 :
            <asp:DropDownList ID="ddlDISPATCH_DEPT" runat="server" AppendDataBoundItems="true">
                <asp:ListItem Text="" Value=""></asp:ListItem>
            </asp:DropDownList>
            
        </td>
        <td>到著所站 :
            <asp:DropDownList ID="ddlRECEIVE_DEPT"  runat="server" AppendDataBoundItems="true">
                <asp:ListItem Text="" Value=""></asp:ListItem>
            </asp:DropDownList>
        </td>
      </tr>
      
      
      <tr>
        <td colspan="3">
            <input id="btn_search" type="button" onclick="btnSearch_Click();" value="搜尋" />
            <%--開起維護頁需 設定PostBackUrl --%>
            <asp:Button ID="btnView" runat="server" Text="查詢" OnClientClick="return SelectRows();" CssClass="btn_opration" OnClick="btn_VIEW_Click" />
            <asp:Button ID="btn_exist" runat="server" Text="離開" OnClick="btn_exist_Click" />
            <asp:Label ID="lbl_message" runat="server" EnableViewState="False" ForeColor="Red"></asp:Label>

        </td>
      </tr>
    </table>
    <br />
       <div style="height: 360px;" onclick='GridEventHandler(event,this.id);' ondbTarget='btnView' class="Document" id="Document"></div>
            <%--換頁區塊--%>
      <%--detl:展開明細 GridWidth:欄位寬度設定(對應Select欄位數);hidecolumn:隱藏欄位(對應Select的欄位名稱);textalign:文字對齊 C=中,R=右,L=左(對應Select欄位數)--%>
            <div class="GridTableFooter" id="DocumentPageControl" detl="False" hidecolumn="" GridWidth="10%,10%,10%,10%,10%,10%,15%,10%,10%,5%" textalign="C,C,C,C,C,C,C,C,C,C" >
               
                 <div id="DocumentdivPageinfo" style="text-align: left; height:100%;width:100%;color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif; background-color: rgb(255, 204, 102);display:none;">
                     <span>&nbsp;第&nbsp;</span>
                       <select id="DocumentdrpPage">
                </select><span>&nbsp;/&nbsp;&nbsp;</span><span id="DocumenttxtPage"></span>

                 <input type="button" id="DocumentbtnFirst" value="第一頁" class="btn_First" />
                <input type="button" id="DocumentbtnPrev" value="上一頁" class="btn_Prepage" />
                <span id="DocumentPages"></span>
                <input type="button" id="DocumentbtnNext" value="下一頁" class="btn_Nextpage" />
                <input type="button" id="DocumentbtnLast" value="最後頁" class="btn_Last" name="Last" />
                &#160;<label style="display:none" id="lblGO_TO1">Go to</label>&#160;<input type="text" style="display:none" id="DocumentPageIndex" class="width_4" maxlength="4" value="" />
                <input style="display:none" type="button" id="DocumentbtnGoto" value="GO" class="btn_Go" name="Go" />
                   <span>&nbsp;總筆數：&nbsp;</span>  <span id="DocumenttxtPageCount"></span>
                 </div>
                
            </div>
  
  </div>
 
    
</asp:Content>

